﻿using ReflectionStudio.Components.UserControls;
using ReflectionStudio.Core.Events;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows;
using System.Data;
namespace WPFExcelReport
{
    public partial class GTTAB05
    {
        #region ==ABAUF===========
        public static readonly DependencyProperty ABAUFProperty = DependencyProperty.Register("ABAUF",
            typeof(string), typeof(GTTAB05),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnABAUFChanged));
        public string ABAUF
        {
            get
            {
                return (string)GetValue(ABAUFProperty);
            }
            set
            {
                SetValue(ABAUFProperty, value);
            }
        }
        private static void OnABAUFChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as GTTAB05;
            if (src != null)
            {
                src.ABAUF = (string)e.NewValue;
            }
        }
        #endregion
      

        VEKKOPF VEK;
        VEKPOS VEKP;
        VWDECK VWDECK;
        VWGBST VWGBST;
        VICC_WBBEW WBW;
        VWASTAMM WS;
        public GTTAB05()
        { 
            InitializeComponent();
            this.Name = "后整控制台";
           
        }
        private void SetUp()
        {
            string date = "", year = "", month = "", day = "";
            Helpers.Helper.GetDate(ref date, ref year, ref month, ref day);
            //cWD02.LFD = "000404";
            cWD02.ABKRS = "H" + year.Substring(3, 1);
            cRZ.KRS = "H" + year.Substring(3, 1);    
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (IsLoaded)
                return;
            SetUp();
            IsLoaded = true;
        } 
    }
}
